package com.info.zhiduoduo.repository.entity.recharge;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author tianyonghong
 * @create 2021/12/9
 */
@Data
@Accessors(chain = true)
@TableName("zdd_recharge_record")
public class RechargeRecord extends Model<RechargeRecord> {

    @TableId(value = "recharge_id" , type = IdType.AUTO)
    private Integer rechargeId;

    /**
     * 客户id
     */
    @TableField("customer_id")
    private Integer customerId;
    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;
    /**
     * 客户类型：1.创客，2.企业，3.自然人，4.合伙人
     */
    @TableField("customer_type")
    private Integer customerType;
    /**
     * 收费类型ID
     */
    @TableField("recharge_type_id")
    private Integer rechargeTypeId;
    /**
     * 收费金额
     */
    @TableField("recharge_amount")
    private BigDecimal rechargeAmount;
    /**
     * 收费凭证
     */
    @TableField("recharge_voucher")
    private String rechargeVoucher;
    /**
     * 收费时间
     */
    private Date rechargeTime;
    /**
     * 备注
     */
    private String rechargeRemark;

    /**
     * 创建人
     */
    private Integer createdBy;
    /**
     * 创建时间
     */
    private Date createdTime;
    /**
     * 删除状态
     */
    private int deleted;

    @Override
    protected Serializable pkVal() {
        return this.rechargeId;
    }
}
